﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Prodma.DataAccess.Models;
using Prodma.DataAccess.DataService;
using Prodma.DataAccess.Models.ViewModels;

namespace Prodma.Panel.Controllers
{
    public class ConfirmController : Controller
    {
        //
        // GET: /Confirm/

        public ActionResult Index()
        {
            return View();
        }

        public ActionResult Address()
        {
            UserService us = new UserService();
            LoginUser loginUser = (LoginUser)System.Web.HttpContext.Current.Session["loginUser"];            
            UserVm user = us.GetUser(loginUser.Id);            

            return View(user);
        }

    }
}
